<template>
  <div id="01">
    <h1 class="h1">热门搜索</h1>
    <div class="chunk">
      <div class="Hot">
        <h2 class="h2">新房</h2>
        <ul class="lou">
          <li v-for="time in xin" :key="time.id">
            {{ time.name }}
            <van-tag type="primary" text-color="#aeb1b5" color="#f7f5f9" size="mini"
              >楼盘</van-tag
            >
          </li>
        </ul>
      </div>
      <div class="Hot">
        <h2 class="h2">二手房</h2>
        <ul class="lou">
          <li v-for="time in er" :key="time.id">
            {{ time.name }}
            <van-tag type="primary" text-color="#aeb1b5" color="#f7f5f9" size="mini">{{
              time.tag
            }}</van-tag>
          </li>
        </ul>
      </div>

      <div class="Hot">
        <h2 class="h2">租房</h2>
        <ul class="lou">
          <li v-for="time in zu" :key="time.id">
            {{ time.name }}
            <van-tag type="primary" text-color="#aeb1b5" color="#f7f5f9" size="mini"
              >小区</van-tag
            >
          </li>
        </ul>
      </div>

      <div class="Hot">
        <h2 class="h2">商业地产</h2>
        <ul class="lou">
          <li v-for="time in shang" :key="time.id">
            {{ time.name }}
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Zong",
  props: ["xin", "er", "zu", "shang"],
};
</script>

<style scoped>
.h1 {
  height: 0.54rem;
  font-size: 0.14rem;
  color: #000;
  font-weight: 700;
  line-height: 0.54rem;
  padding: 0 0.14rem;
}
.Hot {
  width: 1.9rem;
  padding: 0.12rem;
  border-top-left-radius: 0.1rem;
  border-top-right-radius: 0.1rem;
  background-color: #fff;
  flex-shrink: 0;
  box-shadow: 2px 2px 2px 2px #f6f6f6;
  margin-left: 0.05rem;
  border: 1px solid #f6f6f6;
}
.chunk {
  padding: 0 0.14rem;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: space-between;
}
.h2 {
  font-size: 0.14rem;
  color: #000;
  font-weight: 700;
}
.lou li {
  font-size: 0.12rem;
  color: #9e9e9e;
  margin-top: 0.25rem;
}
.van-tag {
  font-size: 0.1rem;
}
.chunk::-webkit-scrollbar {
  display: none;
}
</style>
